<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>十二星座</title>
	</head>
	<body>
		<script>
			var month = prompt("请您输入出生的月份！");
			var date = prompt("请您输入出生的日期！");
			if (month == 1 && date >= 20 && date <=31 || month == 2 && date <=18 ){
				document.write("您是水瓶座！");
			}else if(month == 2 && date >= 19 && date <=28 || month == 3 && date <=20 ){
				document.write("您是双鱼座！")
			}else if(month == 3 && date >= 21 && date <=31 || month == 4 && date <=19 ){
				document.write("您是白羊座！")
			}else if(month == 4 && date >= 20 && date <=30 || month == 5 && date <=20 ){
				document.write("您是金牛座！")
			}else if(month == 5 && date >= 21 && date <=31 || month == 6 && date <=21 ){
				document.write("您是双子座！")
			}else if(month == 6 && date >= 22 && date <=30 || month == 7 && date <=22 ){
				document.write("您是巨蟹座！")
			}else if(month == 7 && date >= 23 && date <=31 || month == 8 && date <=22 ){
				document.write("您是狮子座！")
			}else if(month == 8 && date >= 23 && date <=31 || month == 9 && date <=22 ){
				document.write("您是处女座！")
			}else if(month == 9 && date >= 23 && date <=30 || month == 10 && date <=23 ){
				document.write("您是天秤座！")
			}else if(month == 10 && date >= 24 && date <=31 || month == 11 && date <=22 ){
				document.write("您是天蝎座！")
			}else if(month == 11 && date >= 23 && date <=30 || month == 12 && date <=21 ){
				document.write("您是射手座！")
			}else if(month == 12 && date >= 22 && date <=31 || month == 1 && date <=19 ){
				document.write("您是魔蝎座！")
			}
			else{
				document.write("请您输入正确的年份！")
			}
		</script>
	</body>
</html>
